package com.lxgzhw.student_manager02.dao;

import com.lxgzhw.student_manager02.domain.Student;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface StudentDao extends JpaRepository<Student,Integer> {
    @Query(value = "select * from student limit ?1,?2",nativeQuery = true)
    List<Student> findLimit(Integer curr, Integer limit);
}
